<script setup>
import router from '@/router';
import { useRoute } from 'vue-router';
const log1 = ()=>{
    router.push('/about')
}
//console.log(history.state.params);//固定格式

</script>
<template>
    小李回家了
    <button @click="log1">字符跳转</button>
</template>
